import { Button } from 'antd-mobile'
import React from 'react'
import { useNavigate } from 'react-router-dom'

function Index() {
    const navigate = useNavigate()
    return (
        <div>
            <Button onClick={() => navigate('/')}>返回首页</Button>
            <Button onClick={() => navigate('/fuwu')}>查看车票</Button>
        </div>
    )
}

export default Index
